<template>
  <div class="footer el-row">
    <div class="el-col el-col-6 contect-way">
      <div class="foot-left">
        <span class="foot-title">联系我们</span>
        <div><span style="color: rgb(255, 255, 255); font-size: 22px; line-height: 22px;"><br></span></div>
        <div>

          <span style="; font-size: 14px; color: rgb(65, 68, 77);" v-for="item in address" :key="item">{{item}}</span>
          <br
          style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 12px; line-height: 60px;"><span
          style="line-height: 60px; font-size: 14px; color: rgb(65, 68, 77);">邮箱：{{email}}</span><br
          style="color: rgb(0, 0, 0); font-family: 宋体; font-size: 12px; line-height: 60px;"><span
          style="line-height: 60px; font-size: 14px; color: rgb(65, 68, 77);">工作时间：9:00~18:00</span><span
          style="color: rgb(255, 255, 255); font-size: 22px; line-height: 22px;"><br></span></div>
      </div>
    </div>

    <div class="el-col el-col-6 wechar-way">
      <span class="foot-title">联系电话</span>
      <img class="pic" src="@/assets/phone.png"/>
      <span class="contect-num">{{phoneNum[0]}}</span>
    </div>

    <div class="el-col el-col-6 qq-way">
      <span class="foot-title">QQ联系</span>
      <img class="pic" src="@/assets/qq.png"/>
      <span class="contect-num">{{qq}}</span>
    </div>

    <div class="el-col el-col-6">
      <span class="foot-title">手机扫描二维码访问</span>
      <img class="qrcode_pic" :src="qrcode"/>
    </div>

    <div class="end-foot">

    </div>
  </div>
</template>

<script>
import { getCompanyInfo } from '@/request/api'
export default {
  data () {
    return {
      qrcode: '',
      qq: '',
      phoneNum: '',
      email: '',
      address: ''

    }
  },
  created () {
    let imgUrl = 'http://backmanage.yuxjt.com/'
    getCompanyInfo().then(res => {
      this.phoneNum = res.company_phones
      this.email = res.company_email
      this.address = res.company_address
      this.qrcode = imgUrl + res.company_qrcode.url_img
      this.qq = res.company_qq
    })
  }
}
</script>

<style lang="scss" scoped>
.footer {
  background-color: #1e2432;
  padding: 60px;
  text-align: center;
  .contect-way {
    text-align: left;
    .foot-left {
      float: right;
    }
  }

  .qq-way {
    float: left;
  }

  .foot-title {
    color: rgb(255, 255, 255);
    font-size: 22px;
    line-height: 22px;
  }

  .pic {
    display: block;
    margin: 0 auto;
    margin-top: 50px;
  }
  .qrcode_pic {
    display: block;
    margin: 0 auto;
    margin-top: 20px;
    width: 200px;
  }

  .contect-num {
    color: rgb(255, 255, 255);
    font-size: 22px;
    line-height: 22px;
    position: relative;
    top: 40px;
  }

  .end-foot {

  }
}
</style>
